USE [QuanLyHopDong]
GO

/****** Object:  StoredProcedure [dbo].[DeleteDoiThiCong]    Script Date: 2/10/2015 11:00:55 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[DeleteDoiThiCong] 
	@id int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- update HopDong set DonViId = null where DonViId = @id;

	delete DoiThiCong where Id = @id;

END

GO


